// Open user search help window, it search users using userName, returns users
function openUserWin(elementID, url) {
	var userName = $('#' + elementID).val();
	userName = window
			.showModalDialog(
					url,
					userName,
					"dialogHeight:480px;dialogWidth:640px;dialogLeft:150px;dialogTop:150px;status=off;scroll=yes;resizeable=yes");
	$('#' + elementID).val(userName);
}

// Open group search help window, it search groups using groupName, returns
// groups
function openGroupWin(elementID, url) {
	var groupName = $('#' + elementID).val();
	groupName = window
			.showModalDialog(
					url,
					groupName,
					"dialogHeight:480px;dialogWidth:640px;dialogLeft:150px;dialogTop:150px;status=off;scroll=yes;resizeable=yes");
	$('#' + elementID).val(groupName);
}